﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Crosland.Automotriz.Entidad;

namespace Crosland.Automotriz.Data.Dao.Linq
{
    public class clsVW_Banco_Listar_DAO
    {
        private readonly DM_CROSLAND_20130417Entities ContextoDeObjs = new DM_CROSLAND_20130417Entities();

        public IEnumerable<Object> Listar()
        {
            IEnumerable<Object> lista = new List<Object>();
            try
            {
                var q = from c in ContextoDeObjs.VW_Banco_Listar
                        select new { c.ID_BANCO, NOM_BANCO = c.NOM_BANCO.ToUpper() };
                lista = q.ToList();
            }
            catch (Exception)
            {

            }
            return lista;
        }
    }
}
